<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="java.util.*" %>
<%@ page isELIgnored="false" %> 

<%@ page import="net.ssta.core.db.RecordSet"%>
<%@ page import="net.ssta.core.db.Record"%>
<%@ page import="net.ssta.core.web.RequestKit"%>
<%@ page import="net.ssta.core.db.PagingInfo"%>
<%@ page import="orest.front.achieve.AchieveHandler"%>

<%
	String path = request.getContextPath();
	RecordSet infoclass = AchieveHandler.getNewEnergyClassList();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
    <TITLE>技术市场-国家安科网</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=utf-8">
    <META http-equiv=x-ua-compatible content=ie=7>
    <META content="MSHTML 6.00.6000.17107" name=GENERATOR>
    <link href="<%=path%>/common1/css/layout.css" rel="stylesheet" type="text/css" />
	<link href="<%=path%>/common1/css/user.css" rel="stylesheet" type="text/css" />
    <LINK href="<%=path%>/includes/Fvalidate/style.css" type=text/css rel=stylesheet>
    <script type="text/javascript" src="<%=path%>/includes/DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="<%=path%>/includes/styleBase/js/jquery.js"></script>
	<script type="text/javascript" src="<%=path%>/includes/KindEditor/kindeditor.js"></script>    
    <script type="text/javascript" src="<%=path%>/includes/Fvalidate/Fvalidate.js"></script>

    <SCRIPT>  
	//技术需求
	function load_techneed(divid,http){
		$.ajax({
			type:"POST",
			url:http,
			error:function(msg)
			{
				//alert("操作失败，请重试！"+msg);
			},
		    success:function(data)
		    {
		    	var data = eval("("+data+")");
				var html="";
				html += "<tr>";
				html += "<td width=\"60%\" height=\"30\" align=\"center\" class=\"orange\">技术需求标题</td>";
				html += "<td width=\"20%\" align=\"center\" class=\"orange\">发布时间</td>";
				html += "<td width=\"20%\" align=\"center\" class=\"orange\">发布人</td>";
				html += "</tr>";
				for(var i=0;i<data.length&&i<5;i++){
				/*
					html+="<li><a href=\"#2012\" onclick=\"viewTechneed('"+data[i]['id']+"')\">";
					html+=data[i]['title'];
					html+="</a><span>";
					html+=data[i]['submitdate'];
					html+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
					html+=data[i]['linkman'];
					html+="</span><li>";
					*/
					
					html += "<tr>";
					html += "<td height=\"25\" align=\"left\"  bgcolor=\"#FFFFFF\" style=\"padding-left:15px;\">";
					html += "<a href=\"<%=path%>/market?method=techneedInfoView&uuid="+data[i]['id']+"\" target=\"_blank\">";
					html += data[i]['title']+"</a></td>";
					html += "<td align=\"center\" bgcolor=\"#FFFFFF\" >"+data[i]['submitdate']+"</td>";
					html += "<td align=\"center\" bgcolor=\"#FFFFFF\" >"+data[i]['linkman']+"</td>";
					html += "</tr>";
				}
				$("#"+divid).html(html);
			}
		});
	}
	
	function load_selloneself(divid,http){
		$.ajax({
			type:"POST",
			url:http,
			error:function(msg)
			{
				//alert("操作失败，请重试！"+msg);
			},
		    success:function(data)
		    {
		    	var data = eval("("+data+")");
				var html="";
				html += "<tr>";
				html += "<td width=\"60%\" height=\"30\" align=\"center\" class=\"orange\">自荐项目标题</td>";
				html += "<td width=\"20%\" align=\"center\" class=\"orange\">发布时间</td>";
				html += "<td width=\"20%\" align=\"center\" class=\"orange\">发布人</td>";
				html += "</tr>";
				for(var i=0;i<data.length&&i<5;i++){
					html += "<tr>";
					html += "<td height=\"25\" align=\"left\"  bgcolor=\"#FFFFFF\" style=\"padding-left:15px;\">";
					html += "<a href=\"<%=path%>/market?method=selloneselfInfoView&uuid="+data[i]['id']+"\" target=\"_blank\">";
					html += data[i]['title']+"</a></td>";
					html += "<td align=\"center\" bgcolor=\"#FFFFFF\" >"+data[i]['submitdate']+"</td>";
					html += "<td align=\"center\" bgcolor=\"#FFFFFF\" >"+data[i]['linkman']+"</td>";
					html += "</tr>";
				}
				$("#"+divid).html(html);
			}
		});
	}
	
	function load_invest(divid,http){
		$.ajax({
			type:"POST",
			url:http,
			error:function(msg)
			{
				//alert("操作失败，请重试！"+msg);
			},
		    success:function(data)
		    {
		    	var data = eval("("+data+")");
				var html="";
				html += "<tr>";
				html += "<td width=\"60%\" height=\"30\" align=\"center\" class=\"orange\">投融资项目标题</td>";
				html += "<td width=\"20%\" align=\"center\" class=\"orange\">发布时间</td>";
				html += "<td width=\"20%\" align=\"center\" class=\"orange\">发布人</td>";
				html += "</tr>";
				for(var i=0;i<data.length&&i<5;i++){
					html += "<tr>";
					html += "<td height=\"25\" align=\"left\"  bgcolor=\"#FFFFFF\" style=\"padding-left:15px;\">";
					html += "<a href=\"<%=path%>/market?method=investInfoView&uuid="+data[i]['id']+"\" target=\"_blank\">";
					html += data[i]['title']+"</a></td>";
					html += "<td align=\"center\" bgcolor=\"#FFFFFF\" >"+data[i]['submitdate']+"</td>";
					html += "<td align=\"center\" bgcolor=\"#FFFFFF\" >"+data[i]['linkman']+"</td>";
					html += "</tr>";
				}
				$("#"+divid).html(html);
			}
		});
	}
		
	//自荐项目
	function load_recommendzjxm(divid,http){
		$.ajax({
			type:"POST",
			url:http,
			error:function(msg)
			{
				//alert("操作失败，请重试！"+msg);
			},
		    success:function(data)
		    {
		    	var data = eval("("+data+")");
				var html="";
				for(var i=0;i<data.length&&i<3;i++){
					html+="<li><a href=\"<%=path%>/market?method=selloneselfInfoView&uuid="+data[i]['id']+"\" target=\"_blank\">【自荐项目】";
					html+=data[i]['title'];
					html+="</a><li>";
				}
				$("#"+divid).html(html);
			}
		});
	}
	//技术需求
	function load_recommendjsxq(divid,http){
		$.ajax({
			type:"POST",
			url:http,
			error:function(msg)
			{
				//alert("操作失败，请重试！"+msg);
			},
		    success:function(data)
		    {
		    	var data = eval("("+data+")");
				var html="";
				for(var i=0;i<data.length&&i<3;i++){
					html+="<li><a href=\"<%=path%>/market?method=techneedInfoView&uuid="+data[i]['id']+"\" target=\"_blank\">【技术需求】";
					html+=data[i]['title'];
					html+="</a><li>";
				}
				$("#"+divid).html(html);
			}
		});
	}
	//推荐投融资项目
	function load_recommendtrzxm(divid,http){
		$.ajax({
			type:"POST",
			url:http,
			error:function(msg)
			{
				//alert("操作失败，请重试！"+msg);
			},
		    success:function(data)
		    {
		    	var data = eval("("+data+")");
				var html="";
				for(var i=0;i<data.length&&i<3;i++){
					html+="<li><a href=\"<%=path%>/market?method=investInfoView&uuid="+data[i]['id']+"\" target=\"_blank\">【投融资项目】";
					html+=data[i]['title'];
					html+="</a><li>";
				}
				$("#"+divid).html(html);
			}
		});
	}
	
		
	$(function()
	{
	//推荐技术需求
        var http = "<%=path%>/market?method=techneedRecommendShow";
		load_recommendjsxq("tjjsxq",http);
		
	//推荐自荐项目
        var http = "<%=path%>/market?method=selloneselfRecommendShow";
		load_recommendzjxm("tjzjxm",http);
		
	//推荐投融资项目
        var http = "<%=path%>/market?method=investRecommendShow";
		load_recommendtrzxm("tjtrzxm",http);
	
	//技术需求
        var http = "<%=path%>/market?method=techneedHomepageShow";
		load_techneed("jsxq",http);
		
	//自荐项目
        var http = "<%=path%>/market?method=selloneselfHomepageShow";
		load_selloneself("zjxm",http);
		
	//投融资项目
        var http = "<%=path%>/market?method=investHomepageShow";
		load_invest("trzxm",http);
	});

    function viewTechneed(uuid)
	{
	 	window.open("<%=path%>/market?method=techneedInfoView&uuid="+uuid);;
	} 
	function viewSelloneself(uuid)
	{
	 	window.open("<%=path%>/market?method=selloneselfInfoView&uuid="+uuid);
	} 
	function viewInvest(uuid)
	{
	 	window.open("<%=path%>/market?method=investInfoView&uuid="+uuid);
	} 
	
	function _marketsearch(){
		document.marketsearch.action="<%=path%>/market";
		document.marketsearch.submit();
	}
	
    </SCRIPT>   
</HEAD>

<BODY>
 
<%@include file="../common1/toplogin.jsp"%>    
<%@include file="../common1/topbanner.jsp"%> 
<%@include file="../common1/topmenu.jsp"%> 
 
<div id="contentmain">

	<div id="all_content_left">
	    <%@include file="marketleft.jsp"%> 
        <div id="border_box_orange" style="text-align:center;">
 
		    <div id="ind_title_cont_righttitle"><font>特别推介</font></div>
			<ul id="tjjsxq" class="ArticleTitleList">
				<li><a href="#"></a></li>
			</ul>
            <ul id="tjzjxm" class="ArticleTitleList">
				<li><a href="#"></a></li>
			</ul>
            <ul id="tjtrzxm" class="ArticleTitleList">
				<li><a href="#"></a></li>
			</ul>
		</div>
        
	</div>
    
    <!--div id="content_right"-->
    <div id="all_content_right">
    	<div id="topsearchbox">
		    <form action="<%=path%>/market" method="post" name="marketsearch">
            	<input type="hidden" name="method" id="method" value="marketSearch">
				<ul>
					<li><img src="../common1/images/search/icon.gif" /></li>
					<li><span class="bluetitle"></span></li>
					<li>信息类别：
                    <select id="infotype" name="infotype">
                    	<option value="1">技术需求</option>
                        <option value="2">自荐项目</option>
                        <option value="3">投融资项目</option>
                    </select>
                    所属分类
                    <select id="infoclass" name="infoclass">
                    	<option value="">全部</option>
                    <%
					for(int i=0;i<infoclass.size();i++){
						Record ecRecord = infoclass.get(i);
					%>
                    	<option value="<%=ecRecord.getString("OPTIONVALUE","").trim()%>"><%=ecRecord.getString("OPTIONNAME","")%></option>
                    <%
					}
					%>
                    </select>
                    发布时间
                    <select id="publishdate" name="publishdate">
                    	<option value="0">全部</option>
                        <option value="1">一周</option>
                        <option value="2">一个月</option>
                        <option value="3">三个月</option>
                        <option value="4">半年</option>
                        <option value="5">一年</option>
                    </select>
                    </li>
					<li><img onClick="javascript:_marketsearch();" src="<%=path%>/common1/images/search/botton1.gif" style="margin-top:2px;"/></li>
				</ul>
			</form>
		</div>
    	<div id="topsearchbox">
		    <div id="top_nav_search_left">&nbsp;&nbsp;当前位置：<a href="/cms" style="color:#0071bc;">首页</a> > 技术市场</div>
		</div>
        
      	<div id="border_box">
        	<div id="ind_title"><font><a href="<%=path%>/market?method=marketSearch&infotype=1" class="blue">技术需求</a></font><span><a href="<%=path%>/membercenter1/market/techneedAdd.jsp" class="red"> >>发布技术需求</a></span></div>
            
		    <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#FEFCE3" id="jsxq">
            </table>
	 	</div>
        <br>
        <div id="clearboth"></div>
      	<div id="border_box">
		    <div id="ind_title"><font><a href="<%=path%>/market?method=marketSearch&infotype=2" class="blue">自荐项目</a></font><span align="left"><a href="<%=path%>/membercenter1/market/selloneselfAdd.jsp" class="red"> >>发布自荐项目</a></span></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#FEFCE3" id="zjxm">
            </table>
	 	</div>
        <br>
        <div id="clearboth"></div>
        <div id="border_box">
		    <div id="ind_title"><font><a href="<%=path%>/market?method=marketSearch&infotype=3" class="blue">投融资项目</a></font><span><a href="<%=path%>/membercenter1/market/investAdd.jsp" class="red"> >>发布投融资项目</a></span></div>
			<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#FEFCE3" id="trzxm">
            </table>
	 	</div>
    </div>
</div>
    
<%@include file="../../common1/bottom.jsp"%>

</BODY>
</HTML>
